package com.woniuxy.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.common.model.dto.PageDto;
import com.woniuxy.common.result.Result;
import com.woniuxy.provider.model.entity.Stu;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "search-service",path = "/es")
public interface SearchApi {

    @PostMapping("/save")
    Result<String> save();

    @PostMapping("/search")
    Result<Page<Stu>> search(@RequestBody PageDto pageDto);


}
